using System;
using System.Runtime.Serialization;

namespace MoneyTracking.Common
{
    [DataContract]
    public class Expense
    {
        #region Private Members
        private int _id;
        private int _categoryID;
        private decimal _amount;
        private DateTime _date;
        #endregion
        [DataMember]
        public int ID
        {
            get { return _id; }
            set { _id = value; }
        }
        [DataMember]
        public decimal Amount
        {
            get { return _amount; }
            set { _amount = value; }
        }
        [DataMember]
        public int CategoryID
        {
            get { return _categoryID; }
            set { _categoryID = value; }
        }
        [DataMember]
        public DateTime Date
        {
            get { return _date; }
            set { _date = value; }
        }
    }
}